package com.mtf.syncExportExcel.entity;

import com.google.common.collect.Lists;
import com.mtf.syncExportExcel.handle.EasyExportHandle;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class EasyExportEntity<E, P> {

    /**
     * Export id
     */
    // 导出表的id
    private Long exportId;

    /**
     * 类对象
     */
    private Class clz;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 页名
     */
    private String sheetName;

    /**
     * Header
     */
    // 标题, 如果存在clz没必要设置标题
    private List<List<String>> header;

    /**
     * 分区
     */
    @SuppressWarnings("unchecked")
    private List<P> partition = Lists.newArrayList((P) null);

    /**
     * Handle
     */
    private EasyExportHandle<E, P> handle;
}
